<?php
abstract class Controller_Template
{
	//Attributes
	protected $selfModel;
	protected static $instance;
	public static $db;
	
	//Constructor
	protected function __construct()
	{
		
	}
	
	//Instances
	public static function getInstance()
	{
		$class = get_called_class();
		if(!$class::$instance)
		{
			$class::$instance = new $class();
			return $class::$instance;
		}
	}
	
}